#! /bin/bash

clear

rm tg1/*class

 /home/andre/jdk1.5.0_11/bin/javac      tg1/tralhasUteis/FudeuTudoException.java
/home/andre/jdk1.5.0_11/bin/javac      tg1/tralhasUteis/PeerTeste.java


echo 'Compilando JdbcDAO.java'
 /home/andre/jdk1.5.0_11/bin/javac      tg1/JdbcDAO.java

if (( $?==0 ))
then
	echo 'Compilando BEncoder.java'
	 /home/andre/jdk1.5.0_11/bin/javac      tg1/BEncoder.java
else exit
fi

if (( $?==0 ))
then
	echo 'Compilando TrackerUtils.java'
	 /home/andre/jdk1.5.0_11/bin/javac      -Xlint tg1/TrackerUtils.java
else exit	
fi

if (( $?==0 ))
then
	echo 'Compilando TrackerProperties.java'
	 /home/andre/jdk1.5.0_11/bin/javac      tg1/TrackerProperties.java
else exit	
fi

if (( $?==0 ))
then
	echo 'Compilando RequestHandler.java'
	 /home/andre/jdk1.5.0_11/bin/javac      tg1/RequestHandler.java
else exit	
fi

if (( $?==0 ))
then
	echo 'Compilando Tracker.java'
	 /home/andre/jdk1.5.0_11/bin/javac      tg1/Tracker.java
else exit	
fi

